import configs
import time
from template.singleton import Singleton
# from obj_config import dict_class
# kernel_func = dict_class


class Class_api:

    def cmd_str_api(self, cmd):
        configs.cmd_str_api = cmd

    def message_api(self):
        return configs.comuniction_str_api

    def menu_list_api(self):
        return configs.default_modul

    def tags_api(self, tags):
        if isinstance(tags, list):
            configs.tags_list_api = tags
        elif isinstance(tags, dict):
            configs.tags_dict_api = tags
        elif isinstance(tags, str):
            configs.cmd_str_api = tags
        elif isinstance(tags, int):
            configs.tags_int_api = tags
        else:
            pass

obj_class_api = Class_api()
__all__ = ["obj_class_api"]